import Vue from "vue";
import Vuex from "vuex";
// import * as types from "./types";
import user from "./modules/user";

Vue.use(Vuex);
const initPageState = () => {
  return {
    is_admin : false
      
   
  };
};
const store = new Vuex.Store({
  strict: process.env.NODE_ENV !== "production",

  modules: {
    user
  },
  state: initPageState(),
  mutations: {
     increment(state){
      state.is_admin = !state.is_admin;
     }
  },
  actions: {
    increment({commit},info){
      commit('increment',info)
    }
  
  },
});

export default store;
